package com.greatmay.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.greatmay.dao.HtmlElementDao;
import com.greatmay.model.HtmlElement;


/**
 * This class interacts with hibernate session to save/delete and
 * retrieve Role objects.
 *
 * @author <a href="mailto:bwnoll@gmail.com">Bryan Noll</a>
 * @author jgarcia (updated to hibernate 4)
 */
@Repository
public class HtmlElementDaoHibernate extends GenericDaoHibernate<HtmlElement, String> implements HtmlElementDao {

    public HtmlElementDaoHibernate() {
        super(HtmlElement.class);
    }
    @Override
    public List<HtmlElement> loadAll(String rolename) {
        return this.getAll();
    }
}
